<?php

    // calling the header.php
    get_header();

    // action hook for placing content above #container
    thematic_abovecontainer();

?>
  <div class="grid_10">
  <div id="content">
    <?php
      $curr_page_id = get_page($id)->ID;
    ?>

      <div class="slider-wrapper theme-default">
        <div class="ribbon"></div>
        <div id="slider" class="nivoSlider">
    <?php
      $childs = get_categories('child_of=4&hide_empty=1');

      foreach($childs as $child){
          $all_posts = get_posts("category=".$child->cat_ID);

          foreach($all_posts as $post){
            $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
    ?>
          <a href="<?php echo get_permalink($post->ID); ?>"><img src="<?php echo $feat_image; ?>" alt="" title="<?php echo substr($post->post_content, 0, 260); ?>..." style="width:640px" /></a>
    <?php
          }
      }
    ?>
        </div>
      </div>

  </div>
  </div>
<?php

    // action hook for placing content below #container
    thematic_belowcontainer();

    // calling footer.php
    get_footer();

?>